﻿

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="NLUNZ.Default" %>

<%@ Import Namespace="NLUNZ" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div id="body_left">
			<div class="item_header">
			新闻中心 / News
			</div>
			<div class="item_details">
				<div class="latest_news">
				    <% if(LatestNews != null){%>
					<b>
						<a class="title" href='/News.aspx?ID=<%=LatestNews.ID %>'><%= LatestNews.Title %></a>
					</b>
					 <p><%= LatestNews.Summary %>... </p>
                     <%} %>
				</div>
				<ul>
				    <% if(NewsList != null){ foreach (CompanyInfo news in NewsList)
                       { %><li>
                       						<img width="4px" height="5px" src="Images/arrow.gif" />
						<a href='/News.aspx?ID=<%=news.ID %>'><%= news.Title %></a>
						<span><%= news.CreateDate.ToString("yyyy-MM-dd") %></span>
					</li>
                    <% }} %>
				</ul>
			
			</div>
		</div>
		<div id="body_right">
			<div id="body_right_top">
				<div class="item_header">
				快件追踪 / Tracking
				</div>
				<div class="item_details">
					<div style="float: left; padding:10px; font-weight: bold;">快件追踪:</div>
					<label class="trackingNumberInput">
                        <telerik:RadTextBox ID="RadTextBoxTracking" CssClass="tracking_input" runat="server" 
                        EmptyMessage="请输入运单号" ontextchanged="RadTextBoxTracking_TextChanged">
                        </telerik:RadTextBox>
					</label> 
					<div style="float: left; padding: 5px;">
                        <asp:ImageButton ID="ImageButton1" runat="server" 
                            ImageUrl="Images/search-button.fw.png" Width="50" Height="30" 
                            BorderStyle="None" onclick="ImageButton1_Click" />
					</div>

				</div>
			</div>
			<div id="body_right_bottom">
						<div class="item_header">
				客户登录 / Membership
				</div>
				<div class="item_details">
					<table width="100%" border="0" cellspacing="0" cellpadding="5">
						<tr>
							<td width="70%">
								<table width="100%" border="0" cellspacing="0" cellpadding="5">
									<tr>
										<td width="30%">用户名：</td>
										<td width="70%"><p>					
											<label class="trackingNumberInput">
												<input id="username" type="text" />
											</label>
                                            <p>
										</td>
									</tr>
									<tr>
										<td width="30%">密码：</td>
										<td width="70%"><p>					
											<label class="trackingNumberInput">
												<input id="password" type="text" />
											</label><p>
										</td>
									</tr>
									<tr>
										<td colspan="2">
										<div style="float: left; padding: 10px; margin-left:60px;"><input type="image" src="Images/login-button.fw.png" name="search-button" width="50px" height="30px" /></div>
										</td>
									</tr>
								</table>
								
							</td>
							<td width="30%">
								
							</td>
						</tr>
					</table>
				</div>
			</div>

		</div>
		<div id="body_bottom">
			<div class="item_header">
				合作伙伴 / Partner
			</div>
			<div class="item_details">
			    
                <% foreach (var partner in Partners)
                   { %>
                <div class="partner_box">
                    <a href='<%= partner.LinkUrl %>' target="_blank">
                        <img width="100px" height="60px" alt='<%= partner.Title %>' src='<%= ResolveClientUrl("~/Images/partners/" + partner.ImageUrl) %>' />
                    </a>
                </div>
                <% } %>
			</div>
		</div>
</asp:Content>
